#include <stdio.h>
#define N 100

int main() {

	int i,j,count=0;

	for(i=0; i<=N/5; i++) {
		for(j=0; j<=(N-i*5)/2; j++) {
			count++;
			printf("5 Fen: %d\t2 Fen: %d\t1 Fen: %d\n",i,j,N-5*i-2*j);
		}
	}
	printf("Total method: %d", count);
	return 0;
}
